package com.jie.mapper;

import com.jie.pojo.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaojie
 * @since 2023-11-01
 */
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 根据用户id来查菜单
     * @param adminId
     * @return
     */
    List<Menu> getMenusByAdminId(Integer adminId);
    /**
     * 根据用户角色获取菜单
     */
    List<Menu> getMenusWithRole();


    List<Menu> listMenusByUserInfoId(Long userInfoId);
}
